package org.ltc.alliance.service.power;

import org.ltc.alliance.constant.PowerConst;
import org.ltc.alliance.model.PowerDomain;

import java.util.List;

public interface PowerService {
    void grantManager(Integer provider, Integer receiver, Integer cid);
    void InitReleaser(Integer releaser, Integer cid);
    void transferReleaser(Integer provider, Integer receiver, Integer cid);
    void revokeManager(Integer provider, Integer receiver, Integer cid);
    PowerConst getPower(Integer uid, Integer cid);
    List<PowerDomain> getPowerDomainListByUid(Integer uid);
    List<PowerDomain> getPowerDomainListByCid(Integer cid);


    /* 以下方法都是对输入信息进行检测 */
    void powerReleaser(Integer uid, Integer cid);
    void powerManager(Integer uid, Integer cid);
    void powerOverManager(Integer uid, Integer cid);
    Boolean powerExist(Integer uid, Integer cid);
}
